package com.woniu.zsd.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_info")
@ApiModel(value="OrderInfo对象", description="")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单 ID")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty(value = "订单创建时间")
    private LocalDateTime creatTime;

    @ApiModelProperty(value = "订单修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @ApiModelProperty(value = "用户电话")
    private String userPhone;

    @ApiModelProperty(value = "用户预约地址")
    private String userAddress;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "临时工电话")
    private String workPhone;

    @ApiModelProperty(value = "临时工姓名")
    private String workName;

    @ApiModelProperty(value = "负责人电话")
    private String directorPhone;

    @ApiModelProperty(value = "负责人姓名")
    private String directorName;

    @ApiModelProperty(value = "1.新创建2.已接取3.执行中4.已完成5.已入库6.已取消")
    private Integer orderState;

    @ApiModelProperty(value = "用户预约时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "站点 ID")
    private Integer siteId;

    @ApiModelProperty(value = "成交金额")
    private BigDecimal totalAmount;


    @ApiModelProperty(value = "入库时间")
    private LocalDateTime endTime;
    @ApiModelProperty(value = "备注")
    private String remarks;
    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("工作人员id")
    private Integer workId;


}
